package com.zhenmaitang.clinic_sys.service;

import com.zhenmaitang.clinic_sys.entity.UserRole;
import java.util.List;

public interface UserRoleService {
    List<UserRole> getUserRolesByUserId(Integer userId);
    UserRole createUserRole(UserRole userRole);
    void deleteUserRole(Integer userId, Integer roleId);
    void deleteByUserId(Integer userId);
    boolean hasRole(Integer userId, String roleName);
}